import { Exclude, Expose } from 'class-transformer'
import { Logs } from '../../logs/logs.entity'
import { Roles } from '../../role/roles.entity'
import { Profile } from '../profile.entity'

export class PublicUserDto {
  @Expose()
  id: number

  @Expose()
  username: string

  @Exclude()
  password: string

  @Expose()
  logs: Logs[]

  @Expose()
  roles: Roles[]

  @Expose()
  profile: Profile
}
